//
//  JddDatePicker.m
//  PlayBall
//
//  Created by Edward Zhang on 12-5-9.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddDatePicker.h"

@implementation JddDatePicker

@synthesize datePicker;
@synthesize delegate;
GET_INSTANCE_VIEW_IMPLEMENT(JddDatePicker)

- (IBAction)okButtonClicked:(id)sender{
    [delegate performSelector:@selector(datePickerOkButtonClicked)];
}

- (IBAction)cancelButtonClicked:(id)sender{
    [delegate performSelector:@selector(datePickerCancelButtonClicked)];
}

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
